package com.example.es02.bean;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Document(indexName = "snn_dist")
public class Dist {
    @Id
    private String id;

    @Field(index = true,type = FieldType.Text , analyzer = "ik_max_word")
    private String distCode;

    @Field(index = true,type = FieldType.Text , analyzer = "ik_max_word")
    private String sysOrgCode;

    @Field(index = true,type = FieldType.Text , analyzer = "ik_max_word")
    private String distName;

    @Field(index = true,type = FieldType.Text , analyzer = "ik_max_word")
    private String creditCode;

    @Field(index = true,type = FieldType.Text)
    private String deleteFlag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDistCode() {
        return distCode;
    }

    public void setDistCode(String distCode) {
        this.distCode = distCode;
    }

    public String getSysOrgCode() {
        return sysOrgCode;
    }

    public void setSysOrgCode(String sysOrgCode) {
        this.sysOrgCode = sysOrgCode;
    }

    public String getDistName() {
        return distName;
    }

    public void setDistName(String distName) {
        this.distName = distName;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Dist(String id, String distCode, String sysOrgCode, String distName, String creditCode, String deleteFlag) {
        this.id = id;
        this.distCode = distCode;
        this.sysOrgCode = sysOrgCode;
        this.distName = distName;
        this.creditCode = creditCode;
        this.deleteFlag = deleteFlag;
    }

    public Dist() {
    }
}
